{* Template Name: VIP卡充值*}
<?php echo'<meta charset="UTF-8"><div style="text-align:center;padding:60px 0;font-size:16px;"><h2 style="font-size:60px;margin-bottom:32px;">这里是用户中心模版</h2>哈哈</div>';die();?>
{template:t_header}
<div class="col-19 col-m-24">
    <div class="tx-box bg-white pd15 mb15">
        <h2 class="f-22 mb10">会员级别：{if $user.Level > 4}普通用户{else}VIP会员{/if} {if $user.Level < 5}<span class="f-14">到期时间：{if $user.Level == 1}永久有效{else}{$user.Vipendtime}{/if}</span>{/if}</h2>
        <p>{$zbp.Config('YtUser').readme_text}</p>
    </div>

    <div class="tx-box bg-white mb15">
        <div class="txuser-tab-hd">
            <ul>
                <li class="tx-on">充值卡充值</li>
                {if $zbp->Config('YtUser')->payment=='1'}<li>支付宝在线充值</li>{/if}
            </ul>
        </div>
        <div class="txuser-tab-bd">
            <div class="pd15" style="display:block">
                <ul class="tx-form-li row">
                    <li class="col-24 col-m-24"><p><input required="required" type="text" name="invitecode" class="tx-input"><i>充值卡号(*)</i></p></li>
                    <li class="col-24 col-m-24"><p class="input-ma"><input required="required" type="text" name="verifycode" class="tx-input"  placeholder="验证码">{$article.verifycode}</p></li>
                    <li class="col-24 col-m-24"><p class="tx-input-full"><input type="submit" value="提交" onclick="return RegPage()" class="tx-btn tx-btn-big bg-black"></p></li>
                </ul>
            </div>
            {if $zbp->Config('YtUser')->payment=='1'}
            <div class="pd15">
                <form class="ytarticleedt" id="edit" name="edit" method="post" action="#">
                    <input type="hidden" name="LogID" id="LogID" value="0">
                    <ul class="tx-form-li clearfix mb15">
                        <li class="fl mr10"><input name="vipstate" type="radio" value="1" data-labelauty="一个月({$zbp->Config('YtUser')->pricetemp1}RMB)" checked></li>
                        <li class="fl mr10"><input name="vipstate" type="radio" value="2" data-labelauty="三个月({$zbp->Config('YtUser')->pricetemp2}RMB)"></li>
                        <li class="fl mr10"><input name="vipstate" type="radio" value="3" data-labelauty="一年({$zbp->Config('YtUser')->pricetemp3}RMB)"></li>
                    </ul>
                    <p><button id="btnPost" onclick="return VipRegPage();"  class="tx-btn tx-btn-big bg-black">确定</button></p>    
                </form>
                <script type="text/javascript">function VipRegPage(){document.getElementById("edit").action="{$host}zb_users/plugin/YtUser/cmd.php?act=UploadPst&token={$zbp->GetToken()}";}</script>
            </div>
            {/if}
        </div>

    </div>

</div>
<script>
    $(function(){
        $(':input').labelauty();
    });
</script>
{template:t_footer}
